I haven't written a blog for a while. I 've been on a business trip for a week, and I'm busy with the task of completing the project system,
When writing a system today, I am working on a basic task to read the description text of fields in the specified table from SQL Server. I used to use ADO. Now I use the dbexpress component instead, use the dbexpress component to read the return value of fn_listextend
On the intermediate layer server, package dataset data. The client receives the data using dataset. There are two formats:
(1) tdatasetprovider. Data Format
(2) The format obtained by ADO _ stream is called adostream format, which is also divided into adtg format and XML format.
The following tests the efficiency of ADO and dbexpress database engines in generating different formats.
The test code is as follows:
Function adoreaddata (adataset: tcustoma
The new DBExpress in Delphi6 is used to deal with databases such as Mysql, DB2, Interbase, and Oracle. copy the dll to the current directory or system directory (98: system, NT: system32), and ensure that your port 3306 is consistent with the remote server. Source program: interfaceusesWindows, Messages, SysUtils
The new DBExpress in Delphi6 is used to deal with databases such as Mysql, DB2, Interbase, and
DBEConnecting SQL Server is obviously more advantageous with ADO or dbexpress, at least it is convenient to connect.BDE words can be used as follows: (the following take Delphi7 as an example, other versions of Delphi please feel it, but the basic difference is not big)1. Start Delphi, select menu item Database->explorer, right-click on the Database list on the left, select New, select MSSQL in the Popup driver dialog box, OK, then on the left can cha
DbExpress provides the connection capabilities of multiple databases. this time, we used MySQL as an example to test the connection of MYSQL. Note the following points during the process: 1. create the DataSnap server, there is nothing to say about this. according to the Wizard, the ServerMethodsUnit1 module dbExpress is finally generated to provide the connection capability of multiple databases. this time
Use the DBExpress component of Delphi6 to connect to the remote Mysql database Delphi6. The new DBExpress is used to deal with databases such as Mysql, DB2, Interbase, and Oracle.
Copy the file to the current directory or system directory (98: system, NT: system32), and ensure that your port 3306 is consistent with the remote server.
SOURCE program:
Interface
Uses
Windows, Messages, SysUtils, Variants, Cla
Delphi6 's new dbexpress is specifically designed to deal with databases such as mysql,db2,interbase,oracle, and when used, take care to copy Libmysql.dll to the current directory or system directory (98:SYSTEM,NT:SYSTEM32) and ensure that your 3306 ports are connected to the remote server.
SOURCE program:
InterfaceUsesWindows, Messages, sysutils, variants, Classes, Graphics, Controls, Forms,Dialogs, Dbxpress, DB, sqlexpr, Stdctrls, Comctrls, FMTBCD
MySQL installation directory in the Lib subdirectory of the Libmysql.dll file copy to C:/windows/system32 (the system is not on the C drive to the corresponding directory), restart the Delphi XE, follow the above steps to test the connection, You will see that there is still an issue that does not initialize the database driver correctly. The biggest detour is the use of the installation version of MySQL. You just have to use the decompression version of the MySQL database to be no problem. In
DBExpress added by Delphi6 is used to deal with Mysql, DB2, Interbase, Oracle and other databases.Copy the file to the current directory or system directory (98: system, NT: system32), and ensure that your port 3306 is consistent with the remote server.Source program:InterfaceUsesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,Dialogs, DBXpress, DB, SqlExpr, StdCtrls, ComCtrls, FMTBcd, Grids,DBGrids, Provider, DBClient, DBLoc
Troubleshoot problems with using dbexpress to connect MySQL database in Delphi XEThe Delphi IDE contains a component of Data Explorer, as shown in:The component is based on dbexpress (including Tsqlconnection, Tsqldataset, Tsqlquery, Tsqlstoredproc, tsqltable, Tsqlservermethod, TSQLMonitor, Tsimpledataset). However, because the component provides only abstract drivers for a variety of databases and does not
The Delphi IDE contains a component of Data Explorer, as shown in:The component is based on dbexpress (including Tsqlconnection, Tsqldataset, Tsqlquery, Tsqlstoredproc, tsqltable, Tsqlservermethod, TSQLMonitor, Tsimpledataset). However, because the component provides only abstract drivers for a variety of databases and does not provide the underlying driver libraries that interact directly with the database, it is also necessary to work with a provide
These days just from CB6 upgrade to cb2007, there is a program of their own to use the Dbexpress development Firebird database, the connection is not on the Internet to find some information, they have explored some cb2007 new features, introduced to everyone.
First of all, I am not a full-time programmer, programming is just a hobby, the following methods are not the first I found, I just tidy up, and to those who still cb6 under the development of
First, create a new data access module, the following figure:
This uses the MySQL database, taking into account the Dbgo component (ie ado) unfriendly to MySQL, using the Dbexpress component's access to the travel database.
First, add a tsqlconnection control.
In order to access the database using dbexpress, you need to copy the LibmySQL.dll files under the bin directory under the MySQL installation pa
1. Place 4 controls on a form: Sqlconnection1,simpledataset1,datasource1,dbgrid(Note: If the "Operation not allowed on unidirectional dataset" error occurs for the following reason:).Find an article on the internet as follows:error Description: sqlconnection1, Sqlquery1, Datasource1, and dbgrid1 are used when manipulating the database using the Dbexpress control. In sequential connection, an error occurred when setting the DataSource property of DBGri
When we successfully created a server and client program that uses Dbexpress's datasnap, we closed the current project, and when we opened it again, it was possible that the problem would be:Problem reason: This problem is because the current project group by default started the client project, the client program at startup, the visual design, need to connect the server, but our server did not start!Workaround:1, ignore the current error, enter the project, the default project to adjust to the s
Procedure TForm1.Button1Click (Sender: TObject );VarTheCNN: TSQLConnection; // defines the connection. DB and SqlExpr must be referenced.BeginTheCNN: = TSQLConnection. Create (self );TheCNN. LoginPrompt: = False; // close the logon windowTheCNN.
Delphi7 efficient database program design
DelphiTutorial Series of books(037)《Delphi7Efficient database program design Organize netizens (state)Email:Shuaihj@163.com
:
Source code of the PDF attachment
Author: Li Wei
Series name: Li Wei works Series
Press: Machinery Industry Press
ISBN: 7111112261
Mounting time: 2002-12-24
Published on: February 1, January 2003
Start: 16
Page number: 412
Version: 1-1
Introduction
Dbexpress is Borland's nex
appbrowser Editor, new functions related to Windows 98, improved Ole and COM support functions, extended database components, and a large number of VCL-based additions. function, it includes the plug-in (docking) function, the Force Constraint function, and the anchor control function. Delphi 5 has made significant improvements to the IDE in the programming environment (as a result, many changes cannot be listed here ), in addition, the extended database support function (with the specified ADO
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.